package com;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.comparator.GFSFareClassOccurrence;

public class ComparableTest  {
	public static void main(String[] args){
		List<GFSFareClassOccurrence> test = new ArrayList<GFSFareClassOccurrence>();
		GFSFareClassOccurrence a = new GFSFareClassOccurrence();
		a.setOverride994TableNum(12);
		GFSFareClassOccurrence b = new GFSFareClassOccurrence();
		b.setOverride994TableNum(null);
		GFSFareClassOccurrence c = new GFSFareClassOccurrence();
		c.setOverride994TableNum(12);
		GFSFareClassOccurrence d = new GFSFareClassOccurrence();
		d.setOverride994TableNum(null);
		GFSFareClassOccurrence e = new GFSFareClassOccurrence();
		e.setOverride994TableNum(null);
		test.add(a);
		test.add(b);
		test.add(c);
		test.add(d);
		test.add(e);
		
		Collections.sort(test, GFSFareClassOccurrence.Comparators.override994Tablenum);
		
		for(GFSFareClassOccurrence pp : test){
			System.out.println(pp.getOverride994TableNum());
		}
	}
}
